package com.ls.controller.smsrecord;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ls.controller.customer.model.TimeModel;
import com.ls.controller.smsrecord.model.QuertSmsRecordModel;
import com.ls.controller.smsrecord.model.SmsRecordModel;
import com.ls.service.ISmsRecordService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * <p>
 * 短信记录表 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-06
 */
@Api(value = "短信记录相关接口", tags = "短信记录相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/smsRecord")
public class SmsRecordController {
    private final ISmsRecordService service;
    /** app查询短信发送记录列表 */
    @GetMapping(value = "pageList")
    public ResultData pageList(SmsRecordModel model) {
        return service.pageList(model);
    }
    /** 统计信息短信量  */
    @GetMapping(value = "getDataSms")
    public ResultData getDataSms(TimeModel model) {
        return service.getDataSms(model);
    }
    /** PC查询短信发送记录列表 */
    @GetMapping(value = "getPaging")
    public ResultData getPaging(QuertSmsRecordModel model) {
        return service.getPaging(model);
    }
}

